import { Injectable } from "@angular/core";

@Injectable({
  providedIn: 'root'
})
export class StoreService {
  private loginState: boolean;
  public changeLoginState () {
    this.loginState = !this.loginState;
  }
  public setLogin () {
    this.loginState = true;
  }
  public setLogout () {
    this.loginState = false;
  }
  public get ls() {
    return this.loginState;
  }
}